import request from '@/utils/request'

export function addProduct (parameter) {
  return request({
    url: '/pc/aibaoInsuranceProduct/add',
    method: 'post',
    data: parameter
  })
}
export function listByPageProduct (parameter) {
  return request({
    url: '/pc/aibaoInsuranceProduct/listByPage',
    method: 'post',
    data: parameter
  })
}

export function updateProduct (parameter) {
  return request({
    url: '/pc/aibaoInsuranceProduct/update',
    method: 'put',
    data: parameter
  })
}

export function activeProduct (data) {
  return request({
    url: '/pc/aibaoInsuranceProduct/active',
    method: 'post',
    data
  })
}

export function frozenProduct (data) {
  return request({
    url: '/pc/aibaoInsuranceProduct/frozen',
    method: 'post',
    data
  })
}